﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using NhaSachDAO;
using System.IO;
using System.Data.SqlClient;
using DTO;

namespace NhaSachBUS
{
    public class KhachHangBUS
    {
        public static DataTable LoadKhachHang()
        {
            return NhaSachDAO.KhachHang.LoadKhachHang();
        }
        public static void XoaKhachHang(int makh)
        {
            NhaSachDAO.KhachHang.XoaKhachHang(makh);
        }
        public static void ThemKhachHang( string hotenkh, string gioitinh, string diachi, string email, string sdt, string sotaikhoan, int sodiem)
        {
            NhaSachDAO.KhachHang.ThemKhachHang( hotenkh, gioitinh, diachi, email, sdt, sotaikhoan, sodiem);
        }
        public static void CapNhatKhachHang(int makh,string hotenkh, string gioitinh, string diachi, string email, string sdt, string sotaikhoan, int sodiem)
        {
            NhaSachDAO.KhachHang.CapNhatKhachHang(makh,hotenkh, gioitinh, diachi, email, sdt, sotaikhoan, sodiem);
        }
    }
}
